package cn.middle.remote.exchange;

import cn.middle.remote.serialization.TypeGenericity;

public interface SignalFuture {
	
	/**
	 * 操作完成
	 * @return
	 */
	boolean isDone();
	
	/**
	 * 返回成功
	 * @return
	 */
	boolean isSuccess();
	
	public <T> T get(TypeGenericity<T> clz) throws Throwable;
	
	public <T> T get(TypeGenericity<T> clz,int timeout) throws Throwable;

}
